<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Surreal Gallery - 超现实主义数字藏品平台</title>
    <!-- 引入Font Awesome图标库 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 基础样式 */
        :root {
            --primary: #6a11cb;
            --secondary: #2575fc;
            --accent: #ff2e63;
            --dark: #1a1a2e;
            --light: #f0f0f0;
            --surreal-purple: #8a2be2;
            --surreal-blue: #00b4d8;
            --surreal-pink: #ff6b6b;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
            color: var(--light);
            overflow-x: hidden;
        }

        /* 超现实主义背景元素 */
        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .floating-element {
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            filter: blur(40px);
            animation: float 15s infinite ease-in-out;
        }

        .floating-element:nth-child(1) {
            width: 300px;
            height: 300px;
            background: var(--surreal-purple);
            top: 10%;
            left: 5%;
            animation-delay: 0s;
        }

        .floating-element:nth-child(2) {
            width: 200px;
            height: 200px;
            background: var(--surreal-blue);
            top: 60%;
            right: 10%;
            animation-delay: 3s;
        }

        .floating-element:nth-child(3) {
            width: 250px;
            height: 250px;
            background: var(--surreal-pink);
            bottom: 10%;
            left: 20%;
            animation-delay: 6s;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-20px) rotate(180deg);
            }
        }

        /* 导航栏 */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 5%;
            position: fixed;
            width: 100%;
            z-index: 1000;
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .logo {
            font-size: 28px;
            font-weight: 700;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav ul li {
            margin-left: 30px;
        }

        nav ul li a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        nav ul li a:hover {
            color: var(--surreal-pink);
        }

        nav ul li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            transition: width 0.3s ease;
        }

        nav ul li a:hover::after {
            width: 100%;
        }

        .cta-button {
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            color: white;
            border: none;
            padding: 10px 25px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(106, 17, 203, 0.6);
        }

        .cta-button i {
            margin-right: 6px;
        }

        /* 英雄区块 */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 0 5%;
            position: relative;
        }

        .hero-content {
            max-width: 600px;
            z-index: 10;
        }

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 20px;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue), var(--surreal-pink));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            line-height: 1.2;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            line-height: 1.6;
            opacity: 0.9;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
        }

        .secondary-button {
            background: transparent;
            color: var(--light);
            border: 2px solid var(--surreal-purple);
            padding: 10px 25px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .secondary-button:hover {
            background: rgba(138, 43, 226, 0.1);
            transform: translateY(-3px);
        }

        .hero-visual {
            position: absolute;
            right: 5%;
            top: 50%;
            transform: translateY(-50%);
            width: 500px;
            height: 500px;
            perspective: 1000px;
        }

        .floating-cube {
            position: absolute;
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            animation: rotate 20s infinite linear;
        }

        .cube-face {
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(138, 43, 226, 0.1);
            border: 2px solid rgba(138, 43, 226, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--surreal-purple);
            backface-visibility: hidden;
        }

        .cube-face:nth-child(1) {
            transform: rotateY(0deg) translateZ(250px);
        }

        .cube-face:nth-child(2) {
            transform: rotateY(90deg) translateZ(250px);
        }

        .cube-face:nth-child(3) {
            transform: rotateY(180deg) translateZ(250px);
        }

        .cube-face:nth-child(4) {
            transform: rotateY(-90deg) translateZ(250px);
        }

        .cube-face:nth-child(5) {
            transform: rotateX(90deg) translateZ(250px);
        }

        .cube-face:nth-child(6) {
            transform: rotateX(-90deg) translateZ(250px);
        }

        @keyframes rotate {
            0% {
                transform: rotateX(0) rotateY(0) rotateZ(0);
            }

            100% {
                transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
            }
        }

        /* 特色藏品区块 */
        .featured {
            padding: 100px 5%;
            text-align: center;
        }

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 50px;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            display: inline-block;
        }

        .nft-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .nft-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nft-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }

        .nft-image {
            width: 100%;
            height: 250px;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            color: white;
        }

        .nft-info {
            padding: 20px;
        }

        .nft-info h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .nft-info p {
            opacity: 0.7;
            margin-bottom: 15px;
        }

        .nft-price {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
        }

        .price {
            font-weight: 700;
            color: var(--surreal-pink);
        }

        /* 艺术家区块 */
        .artists {
            padding: 100px 5%;
            background: rgba(0, 0, 0, 0.2);
        }

        .artist-slider {
            display: flex;
            overflow-x: auto;
            gap: 30px;
            padding: 20px 0;
            scrollbar-width: thin;
            scrollbar-color: var(--surreal-purple) transparent;
        }

        .artist-slider::-webkit-scrollbar {
            height: 8px;
        }

        .artist-slider::-webkit-scrollbar-thumb {
            background: var(--surreal-purple);
            border-radius: 4px;
        }

        .artist-card {
            min-width: 250px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .artist-card:hover {
            transform: scale(1.05);
        }

        .artist-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            margin: 0 auto 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
        }

        /* 如何工作区块 */
        .how-it-works {
            padding: 100px 5%;
            text-align: center;
        }

        .steps {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            margin-top: 50px;
            gap: 30px;
        }

        .step {
            flex: 1;
            min-width: 250px;
            max-width: 300px;
            padding: 30px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            transition: all 0.3s ease;
        }

        .step:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.1);
        }

        .step-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-blue));
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
        }

        /* 统计数据区块 */
        .stats {
            padding: 100px 5%;
            background: rgba(0, 0, 0, 0.2);
            text-align: center;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .stat-item {
            padding: 30px;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            background: linear-gradient(45deg, var(--surreal-purple), var(--surreal-pink));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 10px;
        }

        /* 常见问题区块 */
        .faq {
            padding: 100px 5%;
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 20px;
        }

        .faq-question {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .faq-item.active .faq-answer {
            max-height: 200px;
        }

        /* 页脚 */
        footer {
            background: rgba(0, 0, 0, 0.5);
            padding: 50px 5% 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: var(--surreal-blue);
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 10px;
        }

        .footer-column ul li a {
            color: var(--light);
            text-decoration: none;
            opacity: 0.7;
            transition: all 0.3s ease;
        }

        .footer-column ul li a:hover {
            opacity: 1;
            color: var(--surreal-pink);
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: var(--surreal-purple);
            transform: translateY(-3px);
        }

        .social-links a {
            text-decoration: none;
            font-size: 1.2rem;
            color: white;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
        }

        /* 响应式设计 */
        @media (max-width: 968px) {
            .hero h1 {
                font-size: 3rem;
            }

            .hero-visual {
                width: 300px;
                height: 300px;
            }

            .cube-face:nth-child(1) {
                transform: rotateY(0deg) translateZ(150px);
            }

            .cube-face:nth-child(2) {
                transform: rotateY(90deg) translateZ(150px);
            }

            .cube-face:nth-child(3) {
                transform: rotateY(180deg) translateZ(150px);
            }

            .cube-face:nth-child(4) {
                transform: rotateY(-90deg) translateZ(150px);
            }

            .cube-face:nth-child(5) {
                transform: rotateX(90deg) translateZ(150px);
            }

            .cube-face:nth-child(6) {
                transform: rotateX(-90deg) translateZ(150px);
            }
        }

        @media (max-width: 768px) {
            nav ul {
                display: none;
            }

            .hero {
                flex-direction: column;
                text-align: center;
                padding-top: 100px;
            }

            .hero-content {
                margin-bottom: 50px;
            }

            .hero-visual {
                position: relative;
                right: auto;
                top: auto;
                transform: none;
                margin: 0 auto;
            }

            .hero-buttons {
                justify-content: center;
            }
        }
    </style>
</head>

<body>
    <!-- 超现实主义背景元素 -->
    <div class="floating-elements">
        <div class="floating-element"></div>
        <div class="floating-element"></div>
        <div class="floating-element"></div>
    </div>

    <!-- 导航栏 -->
    <header>
        <div class="logo"><i class="fas fa-palette"></i> Surreal Gallery</div>
        <nav>
            <ul>
                <li><a href="#featured"><i class="fas fa-star"></i> 特色藏品</a></li>
                <li><a href="#artists"><i class="fas fa-user-astronaut"></i> 艺术家</a></li>
                <li><a href="#how-it-works"><i class="fas fa-cogs"></i> 如何运作</a></li>
                <li><a href="#faq"><i class="fas fa-question-circle"></i> 常见问题</a></li>
            </ul>
        </nav>
        <button class="cta-button"><i class="fas fa-wallet"></i> 连接钱包</button>
    </header>

    <!-- 英雄区块 -->
    <section class="hero">
        <div class="hero-content">
            <h1>探索超现实数字艺术新维度</h1>
            <p>在梦幻与现实的边界，发现独一无二的数字藏品。我们汇集全球顶尖超现实主义艺术家，为您呈现前所未有的视觉体验。</p>
            <div class="hero-buttons">
                <button class="cta-button"><i class="fas fa-compass"></i> 开始探索</button>
                <button class="secondary-button"><i class="fas fa-info-circle"></i> 了解更多</button>
            </div>
        </div>
        <div class="hero-visual">
            <div class="floating-cube">
                <div class="cube-face"><i class="fas fa-infinity"></i></div>
                <div class="cube-face"><i class="fas fa-snowflake"></i></div>
                <div class="cube-face"><i class="fas fa-star"></i></div>
                <div class="cube-face"><i class="fas fa-magic"></i></div>
                <div class="cube-face"><i class="fas fa-paw"></i></div>
                <div class="cube-face"><i class="fas fa-gem"></i></div>
            </div>
        </div>
    </section>

    <!-- 特色藏品区块 -->
    <section class="featured" id="featured">
        <h2 class="section-title">特色数字藏品</h2>
        <div class="nft-grid">
            <div class="nft-card">
                <div class="nft-image"><i class="fas fa-horse-head"></i></div>
                <div class="nft-info">
                    <h3>梦境独角兽</h3>
                    <p>超现实主义艺术家Luna创作的梦幻生物，融合现实与幻想元素。</p>
                    <div class="nft-price">
                        <span class="price">2.5 ETH</span>
                        <button class="secondary-button"><i class="fas fa-shopping-cart"></i> 购买</button>
                    </div>
                </div>
            </div>
            <div class="nft-card">
                <div class="nft-image"><i class="fas fa-water"></i></div>
                <div class="nft-info">
                    <h3>时间之河</h3>
                    <p>流动的时间概念在超现实维度中的具象化表现。</p>
                    <div class="nft-price">
                        <span class="price">1.8 ETH</span>
                        <button class="secondary-button"><i class="fas fa-shopping-cart"></i> 购买</button>
                    </div>
                </div>
            </div>
            <div class="nft-card">
                <div class="nft-image"><i class="fas fa-city"></i></div>
                <div class="nft-info">
                    <h3>悬浮都市</h3>
                    <p>反重力建筑群在云端漂浮的超现实城市景观。</p>
                    <div class="nft-price">
                        <span class="price">3.2 ETH</span>
                        <button class="secondary-button"><i class="fas fa-shopping-cart"></i> 购买</button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 艺术家区块 -->
    <section class="artists" id="artists">
        <h2 class="section-title">顶尖超现实主义艺术家</h2>
        <div class="artist-slider">
            <div class="artist-card">
                <div class="artist-avatar"><i class="fas fa-user-astronaut"></i></div>
                <h3>Luna Dreamer</h3>
                <p>超现实主义数字艺术先锋</p>
            </div>
            <div class="artist-card">
                <div class="artist-avatar"><i class="fas fa-user-ninja"></i></div>
                <h3>Salvador Reality</h3>
                <p>古典超现实与现代技术的融合者</p>
            </div>
            <div class="artist-card">
                <div class="artist-avatar"><i class="fas fa-user-secret"></i></div>
                <h3>Vera Mirage</h3>
                <p>光影与幻觉大师</p>
            </div>
            <div class="artist-card">
                <div class="artist-avatar"><i class="fas fa-user-injured"></i></div>
                <h3>Fiona Dimension</h3>
                <p>多维空间艺术探索者</p>
            </div>
            <div class="artist-card">
                <div class="artist-avatar"><i class="fas fa-user-graduate"></i></div>
                <h3>Max Surreal</h3>
                <p>超现实主义概念艺术家</p>
            </div>
        </div>
    </section>

    <!-- 如何工作区块 -->
    <section class="how-it-works" id="how-it-works">
        <h2 class="section-title">如何开始收藏</h2>
        <div class="steps">
            <div class="step">
                <div class="step-icon"><i class="fas fa-wallet"></i></div>
                <h3>创建钱包</h3>
                <p>设置您的数字钱包，安全存储您的加密货币和数字藏品。</p>
            </div>
            <div class="step">
                <div class="step-icon"><i class="fas fa-search"></i></div>
                <h3>浏览藏品</h3>
                <p>探索我们独特的超现实主义数字艺术收藏。</p>
            </div>
            <div class="step">
                <div class="step-icon"><i class="fas fa-shopping-cart"></i></div>
                <h3>购买藏品</h3>
                <p>使用加密货币购买您喜爱的数字艺术品。</p>
            </div>
            <div class="step">
                <div class="step-icon"><i class="fas fa-images"></i></div>
                <h3>展示收藏</h3>
                <p>在虚拟画廊中展示您的超现实主义艺术收藏。</p>
            </div>
        </div>
    </section>

    <!-- 统计数据区块 -->
    <section class="stats">
        <h2 class="section-title">平台数据</h2>
        <div class="stats-grid">
            <div class="stat-item">
                <div class="stat-number">10,000+</div>
                <p><i class="fas fa-image"></i> 数字藏品</p>
            </div>
            <div class="stat-item">
                <div class="stat-number">500+</div>
                <p><i class="fas fa-user-tie"></i> 艺术家</p>
            </div>
            <div class="stat-item">
                <div class="stat-number">50,000+</div>
                <p><i class="fas fa-users"></i> 收藏家</p>
            </div>
            <div class="stat-item">
                <div class="stat-number">5,000 ETH</div>
                <p><i class="fas fa-chart-line"></i> 总交易额</p>
            </div>
        </div>
    </section>

    <!-- 常见问题区块 -->
    <section class="faq" id="faq">
        <h2 class="section-title">常见问题</h2>
        <div class="faq-item">
            <div class="faq-question">什么是数字藏品？<span><i class="fas fa-plus"></i></span></div>
            <div class="faq-answer">
                <p>数字藏品是基于区块链技术的独一无二的数字资产，每个藏品都有其独特的标识和所有权记录。</p>
            </div>
        </div>
        <div class="faq-item">
            <div class="faq-question">如何购买数字藏品？<span><i class="fas fa-plus"></i></span></div>
            <div class="faq-answer">
                <p>首先需要设置一个数字钱包，然后使用支持的加密货币在平台上购买您喜欢的数字藏品。</p>
            </div>
        </div>
        <div class="faq-item">
            <div class="faq-question">数字藏品可以转售吗？<span><i class="fas fa-plus"></i></span></div>
            <div class="faq-answer">
                <p>是的，您可以在我们的二级市场或其他兼容平台上转售您的数字藏品。</p>
            </div>
        </div>
        <div class="faq-item">
            <div class="faq-question">超现实主义数字艺术有什么特点？<span><i class="fas fa-plus"></i></span></div>
            <div class="faq-answer">
                <p>超现实主义数字艺术融合了梦幻、不合逻辑的元素与数字技术，创造出超越现实界限的视觉体验。</p>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer>
        <div class="footer-content">
            <div class="footer-column">
                <h3><i class="fas fa-palette"></i> Surreal Gallery</h3>
                <p>探索超现实数字艺术的新维度，发现独一无二的数字藏品。</p>
                <div class="social-links">
                    <a href="#" class="social-link"><i class="fab fa-facebook-f"></i></a>
                    <a href="#" class="social-link"><i class="fab fa-twitter"></i></a>
                    <a href="#" class="social-link"><i class="fab fa-instagram"></i></a>
                    <a href="#" class="social-link"><i class="fab fa-weixin"></i></a>
                </div>
            </div>
            <div class="footer-column">
                <h3>快速链接</h3>
                <ul>
                    <li><a href="#featured"><i class="fas fa-star"></i> 特色藏品</a></li>
                    <li><a href="#artists"><i class="fas fa-user-astronaut"></i> 艺术家</a></li>
                    <li><a href="#how-it-works"><i class="fas fa-cogs"></i> 如何运作</a></li>
                    <li><a href="#faq"><i class="fas fa-question-circle"></i> 常见问题</a></li>
                </ul>
            </div>
            <div class="footer-column">
                <h3>支持</h3>
                <ul>
                    <li><a href="#"><i class="fas fa-question-circle"></i> 帮助中心</a></li>
                    <li><a href="#"><i class="fas fa-envelope"></i> 联系我们</a></li>
                    <li><a href="#"><i class="fas fa-users"></i> 社区指南</a></li>
                    <li><a href="#"><i class="fas fa-file-alt"></i> 服务条款</a></li>
                </ul>
            </div>
            <div class="footer-column">
                <h3>订阅更新</h3>
                <p>订阅我们的新闻通讯，获取最新藏品和活动信息。</p>
                <form>
                    <input type="email" placeholder="您的电子邮箱"
                        style="width: 100%; padding: 10px; margin: 10px 0; border-radius: 5px; border: none; background: rgba(255,255,255,0.1); color: white;">
                    <button type="submit" class="cta-button" style="width: 100%;"><i class="fas fa-envelope"></i>
                        订阅</button>
                </form>
            </div>
        </div>
        <div class="copyright">
            <p>&copy; 2023 Surreal Gallery. 保留所有权利。</p>
        </div>
    </footer>

    <script>
        // 常见问题交互
        document.querySelectorAll('.faq-question').forEach(question => {
            question.addEventListener('click', () => {
                const item = question.parentElement;
                item.classList.toggle('active');
            });
        });

        // 平滑滚动
        document.querySelectorAll('nav a').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();

                const targetId = this.getAttribute('href');
                const targetElement = document.querySelector(targetId);

                window.scrollTo({
                    top: targetElement.offsetTop - 80,
                    behavior: 'smooth'
                });
            });
        });
    </script>
</body>

</html>